﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ASPxCallback.aspx.cs" Inherits="DxExpress_ASPxCallback" %>

<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dxcb" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dxp" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dxrp" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link type="text/css" rel="stylesheet" href="../Example.css" />    
<script src="../Script/AspxCallback.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:DataList ID="DataList1" runat="server" Width="100%">
            <ItemTemplate>
            <%# Eval("Description")%>
                <div class="cbDemoDescription" id="details<%# Eval("id") %>">
                    <div style="text-align: right;">
                        <a href="javascript:ShowDetails(<%# Eval("id") %>);">
                            ShowDetailsButton
                        </a>
                    </div>
                </div>
            </ItemTemplate>
        </asp:DataList>
        <dxcb:ASPxCallback ID="ASPxCallback1" runat="server" ClientInstanceName="Callback1"
            OnCallback="ASPxCallback1_Callback">
            <ClientSideEvents CallbackComplete="function(s, e) {
         var element = GetDetailsContainer(e.parameter);
         element.innerHTML = e.result;
     }" />
        </dxcb:ASPxCallback>
    </div>
    </form>
</body>
</html>
